package com.communal.util;

/**
 * 
 * @author Created by andrey.kuznetsov <br>
 * @author Last modified by $Author$ <br>
 * @author Last modified on $Date$ at revision $Revision$ <br>
 */
public class CommunalFilterBean {

	private Short year;
	private Short month;
	private Long dateFrom;
	private Long dateTo;
	
	/**
	 * Constructror for {@link CommunalFilterBean} <br>
	 * @param p_year - number of year; {@link Short} <br>
	 * @param p_month - number of month; {@link Short} <br>
	 * @param p_dateFrom - start date; {@link Long} <br>
	 * @param p_dateTo - end date; {@link Long}
	 */
	public CommunalFilterBean(Short p_year, Short p_month, Long p_dateFrom, Long p_dateTo) {
		year = p_year;
		month = p_month;
		dateFrom = p_dateFrom;
		dateTo = p_dateTo;
	}

	/**
	 * Returns number of year <br>
	 * @return {@link Short};
	 */
	public Short getYear() {
		return year;
	}

	/**
	 * Sets number of year <br>
	 * @param p_year - {@link Short};
	 */
	public void setYear(Short p_year) {
		year = p_year;
	}

	/**
	 * Returns number of month <br>
	 * @return {@link Short};
	 */
	public Short getMonth() {
		return month;
	}

	/**
	 * Sets number of month <br>
	 * @param p_month - {@link Short};
	 */
	public void setMonth(Short p_month) {
		month = p_month;
	}

	/**
	 * Returns start date for filtration <br>
	 * @return {@link Long};
	 */
	public Long getDateFrom() {
		return dateFrom;
	}

	/**
	 * Sets start date for filtration <br>
	 * @param p_dateFrom - {@link Long};
	 */
	public void setDateFrom(Long p_dateFrom) {
		dateFrom = p_dateFrom;
	}

	/**
	 * Returns end date for filtration <br>
	 * @return {@link Long};
	 */
	public Long getDateTo() {
		return dateTo;
	}

	/**
	 * Sets end date for filtration <br>
	 * @param p_dateTo - {@link Long};
	 */
	public void setDateTo(Long p_dateTo) {
		dateTo = p_dateTo;
	}
	
	
}
